package com.agger.eurekacommonapi.enums;

/**
 * @classname: CommonExceptionEnums
 * @description: 公共的异常枚举类
 * @author chenhx
 * @date 2020-05-26 11:21:41
 */
public enum  CommonExceptionEnums {
    ERROR_COMMON("COMMON_ERROR_001","通用异常"),
    ERROR_DATA("COMMON_ERROR_001","数据访问异常");

    private String code;
    private String desc;

    CommonExceptionEnums(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String code() {
        return code;
    }

    public String desc() {
        return desc;
    }
}
